package ch.fhnw.ams.sudoku;

import ch.fhnw.ams.sudoku.SudokuGame.SudokuState;

/**
 * A class can implement the Observer interface when it wants to be informed of
 * changes in {@link SudokuObservable} objects.
 * 
 * @author amsler
 * 
 */
public interface SudokuObserver {
	
	/**
	 * This method is called when the observed object has changed.
	 * 
	 * @param oldState
	 *            the state before the change
	 * @param newState
	 *            the state after the change
	 */
	void stateChanged(SudokuState oldState, SudokuState newState);
	
}
